A partner can be a client or a vendor, currently we only use them for clients.
| name | value |
|---|---|
| partnerNumber | P-31010 |
| personType | LEGAL_PERSON |
| tradeName | Test AG |
| contactCaption | Test AG - Hamburg |
| postalAddress | “firm”: “Test AG”, “department”: “Geschäftsleitung”, “street”: “Shanghai-Allee 1”, “zipcode”: “20123”, “city”: “Hamburg”, “country”: “Germany” |
| officePhoneNumber | +49 40 654321-0 |
| emailAddress | hamburg@test-ag.example.org |
| registrationOffice | Registergericht Hamburg |
| registrationNumber | 1234567 |
HTTP GET "/api/hs/office/persons?name=Hostsharing+eG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "8f6b2e83-5cd0-4f3b-bac9-c56b374445cf", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
Even in production data we expect this query to return just a single result.
HTTP POST "/api/hs/office/persons" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG"
}
EOF
=> status: 201 CREATED 3029ef4b-ab91-429d-855b-26a8bedcef6e
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"caption" : "Test AG - Hamburg",
"postalAddress" : {
"firm" : "Test AG",
"department" : "Geschäftsleitung",
"street" : "Shanghai-Allee 1",
"zipcode" : "20123",
"city" : "Hamburg",
"country" : "Germany"
},
"phoneNumbers" : {
"office" : "+49 40 654321-0"
},
"emailAddresses" : {
"main" : "hamburg@test-ag.example.org"
}
}
EOF
=> status: 201 CREATED 132fe58f-128a-4807-8ef4-fdd561f2b33c
HTTP POST "/api/hs/office/partners" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"partnerNumber" : "P-31010",
"partnerRel" : {
"anchor.uuid" : "8f6b2e83-5cd0-4f3b-bac9-c56b374445cf", // Person: Hostsharing eG
"holder.uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
"contact.uuid" : "132fe58f-128a-4807-8ef4-fdd561f2b33c" // Contact: Test AG - Hamburg
},
"details" : {
"registrationOffice" : "Registergericht Hamburg",
"registrationNumber" : "1234567"
}
}
EOF
=> status: 201 CREATED 4db6b8bf-d1f9-4a92-953c-787e345acb22
HTTP GET "/api/hs/office/relations?relationType=PARTNER&contactData=Test+AG+-+Hamburg" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "da7c6690-455b-404c-aac3-fa98660e5a7d",
"anchor" : {
"uuid" : "8f6b2e83-5cd0-4f3b-bac9-c56b374445cf", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "132fe58f-128a-4807-8ef4-fdd561f2b33c", // Contact: Test AG - Hamburg
"caption" : "Test AG - Hamburg",
"postalAddress" : {
"zipcode" : "20123",
"firm" : "Test AG",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Shanghai-Allee 1",
"department" : "Geschäftsleitung"
},
"emailAddresses" : {
"main" : "hamburg@test-ag.example.org"
},
"phoneNumbers" : {
"office" : "+49 40 654321-0"
}
}
} ]
generated on 2026-08-10 03:08:28 for branch HEAD